Skip to content

Conversation

javiereguiluz
Copy link
Member

Fixes #13068.

@OskarStark
Copy link
Contributor

Thank you Javier.

OskarStark added a commit that referenced this pull request Feb 13, 2020
This PR was merged into the master branch.

Discussion
----------

[String] Documented the s() function

Fixes #13068.

Commits
-------

850c347 [String] Documented the s() function
@OskarStark OskarStark merged commit 850c347 into symfony:master Feb 13, 2020
use function Symfony\Component\String\u;

// creates a ByteString object
$foo = s('\xfe\xff');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double quotes would be needed for escaped chars to be parsed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will fix it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OskarStark added a commit that referenced this pull request Feb 13, 2020
This PR was merged into the master branch.

Discussion
----------

[String] Fix s() namespace

Ref #13119

Commits
-------

4a52c6e [String] Fix s() namespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[String] Add the s() helper method
5 participants